import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login.vue'
import Main from  '../components/Main.vue'
import Defectlist from '../components/Defectlist.vue'
import Projectmanager from '../components/Projectmanager.vue'
import Defectstate from '../components/Defectstate.vue'
import Defecttype from '../components/Defecttype.vue'
import Projectpriority from '../components/Projectpriority.vue'
import Projectseverity from '../components/Projectseverity.vue'
import Defectchoice from '../components/Defectchoice.vue'
import Defectresponse from '../components/Defectresponse.vue'
import Defecthandle from '../components/Defecthandle.vue'
import Usermanager from '../components/Usermanager.vue'
import Projectrole from '../components/Projectrole.vue'
import UserRolemanager from '../components/UserRolemanager.vue'
import Defecttyperate from '../components/Defecttyperate.vue'
import Defectstaterate from '../components/Defectstaterate.vue'
import Severityrate from '../components/Severityrate.vue'
import Workhourday from '../components/Workhourday.vue'
import Workhourmonth from '../components/Workhourmonth.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
    	path:"/",
    	redirect:"/login"
    },
    {
    	path:"/login",
    	component:Login
    },
    {
      path:"/main",
      component:Main,
      children:[
        {
          path:"defectlist",
          component:Defectlist
        },
        {
          path:"defectchoice",
          component:Defectchoice
        },
        {
          path:"defectresponse",
          component:Defectresponse
        },
        {
          path:"defecthandle",
          component:Defecthandle
        },
        {
          path:"projectmanager",
          component:Projectmanager
        },
        {
          path:"defectstate",
          component:Defectstate
        },
        {
          path:"defecttype",
          component:Defecttype
        },
        {
          path:"projectpriority",
          component:Projectpriority
        },
        {
          path:"projectseverity",
          component:Projectseverity
        },
        {
        	path:"usermanager",
        	component:Usermanager
        },
        {
        	path:"projectrole",
          component:Projectrole
        },
        {
        	path:"UserRolemanager",
        	component:UserRolemanager
        },
        {
          path:"defecttyperate",
          component:Defecttyperate
        },
        {
         path:"defectstaterate",
         component:Defectstaterate
        },
        {
        path:"severityrate",
        component:Severityrate
        },
        {
        path:"workhourday",
        component:Workhourday
        },
        {
        path:"workhourmonth",
        component:Workhourmonth
        }
      ]
    }
  ]
})
